<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue</title>
</head>
<style>
    .fade-enter-active, .fade-leave-active {
        transition: opacity .5s
    }
    .fade-enter, .fade-leave-to /* .fade-leave-active in below version 2.1.8 */ {
        opacity: 0
    }
</style>
<body>
<div id='example'>
   <button @click="show = !show">toggle</button>
    <transition name="fade">
        <p v-if="show" >hello</p>
    </transition>
</div>
</body>
</html>
<script src="../js/vue.js"></script>
<script src="../node_modules/lodash/lodash.js"></script>
<script src="../node_modules/axios/dist/axios.js"></script>
<script>

    var vm = new Vue({
        el: '#example',
        data: {
            show: true
        },
        methods: {}
    });

</script>